package cocurrency.volatiletest;

/**
 * Created by luzl on 4/8/2017.
 */
public class ConflictsThread extends Thread{

    public static boolean stop=false;
    private String name;

    public ConflictsThread(String name){
        this.name=name;
    }

    public void run(){
        while(stop==false){
            System.out.println(this.name+" is running ...");
            try {
                Thread.currentThread().sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
